package com.stxx.stiot2.service;

import com.stxx.framwork.domain.model.Option;
import com.stxx.framwork.support.OptionsService;
import com.stxx.stiot2.domain.Gateway;
import com.stxx.framwork.support.BaseService;
import com.stxx.stiot2.domain.cache.GatewayCache;

import java.sql.SQLException;
import java.util.List;

public interface GatewayService extends BaseService<Gateway,String>, OptionsService {

//    GatewayState getGatewayState(String gatewayCode);
//
//    void getGatewayState(String gatewayCode, GatewayState state);


    GatewayCache getCache(String id);

    List<Gateway> listActive() throws SQLException;
    List<Gateway> listMqtt() throws SQLException;

    int updateLastReportTime(GatewayCache gatewayCache) throws SQLException;
}
